package com.jinglin.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("article")
public class Article {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;
    @TableField("title")
    private String title;
    @TableField("content")
    private String content;
    @TableField("cover_img")
    private String cover_img;
    @TableField("pub_date")
    private String pub_date;
    @TableField("state")
    private String state;
    @TableField("cate_id")
    private String cate_id;
    @TableField("author_id")
    private String author_id;
    @TableField("cate_name")
    private String cate_name;
    @TableField("username")
    private String username;
    @TableField("nickname")
    private String nickname;
    @TableLogic(value = "0",delval = "1")
    private int deleted;
    @TableField("recommend")
    private Integer recommend;
}
